#include "SQLNotNullConstraint.h"
#include "../../../sql/visitor/SQLASTVisitor.h"

SQLNotNullConstraint::SQLNotNullConstraint()
{
}

void SQLNotNullConstraint::accept0(SQLASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(SQLNotNullConstraint));
  visitor->endVisit(SharedObject(SQLNotNullConstraint));
}

SQLObject_ptr SQLNotNullConstraint::clone()
{
  SQLObject_ptr clone_tmp = SQLNotNullConstraint_ptr(new SQLNotNullConstraint());
  SQLNotNullConstraint_ptr x = std::dynamic_pointer_cast<SQLNotNullConstraint>(clone_tmp);
  // SQLNotNullConstraint *x = new SQLNotNullConstraint();
  SQLConstraintImpl::cloneTo(std::dynamic_pointer_cast<SQLConstraintImpl>(x));
  return x;
}
